import request from '@/utils/request'


export function cateList(info) {
  return request({
    url: '/category/list',
    method: 'get',
    params: info
  })
}


export function delCate(data) {
  return request({
    url: "/category/delete",
    method: "get",
    params: data,
  });
}


export function updateCate(data) {
  return request({
    url: "/category/update",
    method: "post",
    data
  });
}

export function addCate(data) {
  return request({
    url: "/category/add",
    method: "post",
    data
  });
}